package nxu.it.dao;

import nxu.it.model.RegisterRequest;
import org.jdbi.v3.sqlobject.customizer.BindBean;
import org.jdbi.v3.sqlobject.statement.SqlUpdate;

public interface RegisterDao {
    @SqlUpdate("INSERT INTO user (username,password) VALUES (:username,sha2(:password,256))")
    void submit(@BindBean RegisterRequest registerRequest);
}
